<!DOCTYPE html>
<html lang="cn">
<head>
    <meta charset="utf-8">
    <title>首页 </title>

    <!--移动设备优先-->
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="keywords" content="博客" />
    <meta name="description" content="我的生活，个人博客" />
    <link rel="stylesheet" type="text/css" href="/static/index/css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="/static/index/css/my.css" />
    <link rel="stylesheet" type="text/css" href="/static/index/css/font_1477105914_3430886.css">
    <link rel="stylesheet" type="text/css" href="/static/index/css/timesroll.css">
    <script src="/static/index/js/jquery-1.10.1.min.js" ></script>
    <script src="/static/index/js/scrollReveal.js"></script>
    <script src="/static/index/js/modernizr.js"></script>
</head>
<body>


<div class="container">
    <nav class="navbar navbar-default">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                <span class="sr-only">导航</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand visible-xs" href="#">博客导航</a>
        </div>
        <div class="collapse navbar-collapse menu" id="bs-example-navbar-collapse-1">
            <div class="navbar-header navbar-left">
                <a class="navbar-brand" href="{:url('index/index/index')}">
                    <img alt="Brand" src="/static/index/images/logo.jpg" width="100">
                </a>
            </div>
            <ul class="nav navbar-nav navbar-right">
                <li class="menu-active"><a href="{:url('index/index/index')}">首页</a></li>
                {volist name="cate" id="cate"}
                <li class="dropdown ">
                    <a href="/"  data-hover="dropdown">{$cate.cname}</a>
                    <ul class="dropdown-menu" role="menu">
                        {volist name="cate['cate2']" id="cate2"}
                        <li><a href="/category/{$cate2.id}" ><i class="icon-ok-sign"></i> {$cate2.cname}</a></li>
                        <li class="divider"></li>
                        {/volist}
                    </ul>
                </li>
                {/volist}
                <li class="menu-active"><a href="{:url('index/personal/review')}">留言</a></li>
                <li class="menu-active"><a href="http://nodejs.lyang.top">相册</a></li>
                {:empty($Think.session.user) && empty($Think.session.qq) ? "<li><a href=\".url('index/login/index').\">登录/注册</a></li>" : ''}
                {:empty($Think.session.user) ? '' : "<li class='dropdown '><a href=\".url('index/personal/index').\"  data-hover='dropdown'><img width='20' height='20' src=\".$Think.session.user.figureurl.\" class='img-circle'>".$Think.session.user.nickname."</a><ul class='dropdown-menu' role='menu'><li><a href=\".url('index/personal/exit').\" ><i class='icon-ok-sign'></i> 退出登录</a></li><li class='divider'></li></ul></li>"}
                {:empty($Think.session.qq) ? '' : "<li class='dropdown '><a href=''  data-hover='dropdown'><img width='20' src=\".$Think.session.qq.figureurl.\" class='img-circle'>".$Think.session.qq.nickname."</a><ul class='dropdown-menu' role='menu'><li><a href=\".url('index/personal/exit').\" ><i class='icon-ok-sign'></i> 退出登录</a></li><li class='divider'></li></ul></li>"}

            </ul>
            <div class="menu-bar"></div>
            <div class="menu-clean"></div>
        </div>
    </nav>
</div>
<!--头部结束-->